package com.xxxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxy.commonResult.CommonResultPage;
import com.xxxy.model.ExaminationPaper;
import com.xxxy.model.KnowledgePoint;
import com.xxxy.model.Question;
import com.xxxy.response.ExaminationPaperResponse;
import com.xxxy.response.GradeAnalysisResponse;
import com.xxxy.response.QuestionListResponse;
import com.xxxy.response.QuestionResponse;

import java.util.List;

/**
 * @author sjh
 * @date 2022/2/27 15:56
 */
public interface ExaminationPaperService extends IService<ExaminationPaper> {

    /**
     * 根据条件按时间顺序输出试卷
     * @param page
     * @param size
     * @param facultyId 学院id
     * @param courseId 课程id
     * @param examinationName 试卷名
     * @return
     */
    CommonResultPage listExamination(Integer page, Integer size, Integer facultyId, Integer courseId, String examinationName, Integer isReviewed, String teacherAccount);

    /**
     * 根据id获取试卷信息
     * @param id
     * @return
     */
    ExaminationPaperResponse getById(Integer id);

    /**
     * 根据试卷id获取该试卷的题目
     * @param id
     * @return
     */
    List<QuestionListResponse> getQuestionByExaminationPaperId(Integer id);
}
